<form class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">

    <!-- 活动标题 -->
    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="title" data-rule="required" class="form-control" name="row[title]" placeholder="{:__('Title')}"
                type="text" value="">
        </div>
    </div>

    <!-- 优惠券折扣率 -->
    <div class="form-group">
        <label for="rate" class="control-label col-xs-12 col-sm-2">{:__('Rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" class="form-control" id="rate" name="row[rate]"
                placeholder="{:__('Rate')}"></input>
        </div>
    </div>

    <!-- 活动状态 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="status" data-rule="required" class="form-control selectpicker" name="row[status]">
                {foreach name="$StatusList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo} </option>
                {/foreach}
            </select>
        </div>
    </div>

    <!-- 优惠券数量 -->
    <div class="form-group">
        <label for="total" class="control-label col-xs-12 col-sm-2">{:__('Total')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="total" data-rule="required" class="form-control" name="row[total]" placeholder="{:__('Total')}"
                type="text" value="">
        </div>
    </div>

    <!-- 活动开始时间 -->
    <div class="form-group col-lg-3">
        <div class="input-group form_datetime">
            <span class="input-group-addon">{:__('CreateTime')}:</span>
            <input class="form-control datetimepicker" data-date-format="YYYY-MM-DD" type="text" data-rule="required"
                name="row[createtime]" placeholder="请选择开始时间">
        </div>
    </div>

    <!-- 活动结束时间 -->
    <div class="form-group col-lg-3">
        <div class="input-group form_datetime">
            <span class="input-group-addon">{:__('EndTime')}:</span>
            <input class="form-control datetimepicker" data-date-format="YYYY-MM-DD" type="text" data-rule="required"
                name="row[endtime]" placeholder="请选择结束时间">
        </div>
    </div>

    <!-- 优惠券图片 -->
    <div class="form-group">
        <label for="thumb" classs="control-label col-xs-12 col-sm-2">{:__('Thumb')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <!-- 上传路径 -->
                <input id="thumb" class="form-control" size="50" name="row[thumb]" type="text" readonly />

                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-thumbs" class="btn btn-danger faupload"
                            data-input-id="thumb"
                            data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                            data-multiple="false" data-preview-id="p-thumbs"><i class="fa fa-upload"></i>
                            上传</button></span>
                    <span><button type="button" id="fachoose-thumbs" class="btn btn-primary fachoose"
                            data-input-id="thumb" data-mimetype="image/*" data-multiple="false"><i
                                class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="thumb"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-thumbs"></ul>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>